    /***
     * @description axios封装
     * @file api.ts
     * @author andy
     * @date 2024/3/22 16:40
     */
// file:api.s
// 1、导入axios以及拦截器
import service from './request'

// demo接口1
export const demo1 = (data:any) => {
    return service({
        url: '/user/user/demo1/' + data,
        method: 'post'
    })
};


// 登录接口
export const Login = (data:any) => {
    return service({
        url: '/user/index/login',
        method: 'post',
        data
    })
};
// 分页接口
export const OrderList = (data:any) => {
    return service({
        url: '/order/index/OrderList',
        method: 'post',
        data
    })
};
// 删除接口
export const DeleteOrder = (data:any) => {
    return service({
        url: '/order/index/DeleteOrder',
        method: 'post',
        data
    })
};
// 修改接口
export const upDataOrder = (data:any) => {
    return service({
        url: '/order/index/upDataOrder',
        method: 'post',
        data
    })
};
// 添加接口
export const AddOrder = (data:any) => {
    return service({
        url: '/order/index/AddOrder',
        method: 'post',
        data
    })
};


